package com.rzcf.blink.pay.api.http;

import com.rzcf.blink.pay.api.model.UnifiedOrderReqDTO;
import com.rzcf.blink.pay.api.model.UnifiedOrderRespDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.tangyh.basic.base.R;

/**
 * @author dongsufeng
 */
@FeignClient(contextId = "unifiedOrderApi", name = "blink-pay-app")
@Tag(name = "支付订单服务")
public interface UnifiedOrderApi {

    /**
     * 统一下单
     *
     * @param reqDTO
     * @return
     */
    @Operation(summary = "统一下单", description = "统一下单接口")
    @PostMapping("/api/pay/order/unifiedOrder")
    R<UnifiedOrderRespDTO> unifiedOrder(@RequestBody @Validated UnifiedOrderReqDTO reqDTO);
}
